package org.neuedu.chapter09_0630.demo02;

public class Student {
    private String name;
    private int age;

    public static void main(String[] args) {
        System.out.println(new Student());
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder("");
        builder.append("Student{name='")
                .append(name)
                .append("'")
                .append(", age=")
                .append(age)
                .append("}");
        return builder.toString();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
